﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VehTemplate
{
    public abstract class Vehical
    {
        protected abstract void Run();
        protected abstract void Stop();
        protected abstract void Trun();

        public void Test()
        {
            Run();
            Stop();
            Trun();
        }
    }

    public class MassCar : Vehical
    {
        protected override void Run()
        {
            Console.WriteLine("大众开始跑");
        }

        protected override void Stop()
        {
            Console.WriteLine("大众停止！！");
        }

        protected override void Trun()
        {
            Console.WriteLine("大众转弯。。");
        }
    }

    public class Test
    {
        public static void TestMy(Vehical car)
        {
            car.Test();
        }
    }


}
